
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module TeamZServStatsMixin</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>TeamZServStatsMixin</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/media/disk-1/data/zdstack/trunk/ZDStack/TeamZServStatsMixin.py">/media/disk-1/data/zdstack/trunk/ZDStack/TeamZServStatsMixin.py</a></font></td></tr></table>
    <p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="logging.html">logging</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="ZDStack.GeneralZServStatsMixin.html#GeneralZServStatsMixin">ZDStack.GeneralZServStatsMixin.GeneralZServStatsMixin</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="TeamZServStatsMixin.html#TeamZServStatsMixin">TeamZServStatsMixin</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="TeamZServStatsMixin">class <strong>TeamZServStatsMixin</strong></a>(<a href="ZDStack.GeneralZServStatsMixin.html#GeneralZServStatsMixin">ZDStack.GeneralZServStatsMixin.GeneralZServStatsMixin</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#TeamZServStatsMixin">TeamZServStatsMixin</a>&nbsp;adds&nbsp;team&nbsp;stats&nbsp;to&nbsp;a&nbsp;ZServ.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="TeamZServStatsMixin-__init__"><strong>__init__</strong></a>(self, memory_slots, player_class<font color="#909090">=&lt;class 'ZDStack.TeamPlayer.TeamPlayer'&gt;</font>, team_class<font color="#909090">=&lt;class 'ZDStack.BaseTeam.BaseTeam'&gt;</font>, map_class<font color="#909090">=&lt;class 'ZDStack.TeamMap.TeamMap'&gt;</font>, stats_class<font color="#909090">=&lt;class 'ZDStack.TeamStats.TeamStats'&gt;</font>, load_plugins<font color="#909090">=False</font>, log_type<font color="#909090">='server'</font>)</dt><dd><tt>Initializes&nbsp;a&nbsp;<a href="#TeamZServStatsMixin">TeamZServStatsMixin</a>.<br>
&nbsp;<br>
memory_slots:&nbsp;an&nbsp;int&nbsp;representing&nbsp;the&nbsp;number&nbsp;of&nbsp;games&nbsp;to<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remember<br>
player_class:&nbsp;the&nbsp;player&nbsp;class&nbsp;to&nbsp;use<br>
team_class:&nbsp;&nbsp;&nbsp;the&nbsp;team&nbsp;class&nbsp;to&nbsp;use<br>
map_class:&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;map&nbsp;class&nbsp;to&nbsp;use<br>
stats_class:&nbsp;&nbsp;the&nbsp;stats&nbsp;class&nbsp;to&nbsp;use&nbsp;(for&nbsp;remembering&nbsp;games)<br>
load_plugins:&nbsp;a&nbsp;boolean,&nbsp;whether&nbsp;or&nbsp;not&nbsp;to&nbsp;load&nbsp;plugins<br>
log_type:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;type&nbsp;of&nbsp;log&nbsp;to&nbsp;parse,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;valid&nbsp;options&nbsp;are&nbsp;'server'&nbsp;and&nbsp;'client'</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-change_map"><strong>change_map</strong></a>(self, map_number, map_name)</dt><dd><tt>Handles&nbsp;a&nbsp;map&nbsp;change&nbsp;event.<br>
&nbsp;<br>
map_number:&nbsp;an&nbsp;int&nbsp;representing&nbsp;the&nbsp;number&nbsp;of&nbsp;the&nbsp;new&nbsp;map<br>
map_name:&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;new&nbsp;map</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-dump_stats"><strong>dump_stats</strong></a>(self)</dt><dd><tt>Returns&nbsp;a&nbsp;list&nbsp;of&nbsp;dumped&nbsp;stats&nbsp;from&nbsp;all&nbsp;StatKeepers.</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-get_team"><strong>get_team</strong></a>(self, color)</dt><dd><tt>Returns&nbsp;a&nbsp;Team.<br>
&nbsp;<br>
color:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;color&nbsp;of&nbsp;the&nbsp;Team&nbsp;to&nbsp;return</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-initialize_general_stats"><strong>initialize_general_stats</strong></a>(self)</dt><dd><tt>Initializes&nbsp;stats&nbsp;from&nbsp;the&nbsp;general&nbsp;log.</tt></dd></dl>

<hr>
Methods inherited from <a href="ZDStack.GeneralZServStatsMixin.html#GeneralZServStatsMixin">ZDStack.GeneralZServStatsMixin.GeneralZServStatsMixin</a>:<br>
<dl><dt><a name="TeamZServStatsMixin-add_player"><strong>add_player</strong></a>(self, ip_address, port)</dt><dd><tt>Adds&nbsp;a&nbsp;player&nbsp;to&nbsp;self.<strong>players</strong><br>
&nbsp;<br>
ip_address:&nbsp;a&nbsp;string&nbsp;representing&nbsp;a&nbsp;player's&nbsp;IP&nbsp;address<br>
port:&nbsp;a&nbsp;string&nbsp;representing&nbsp;a&nbsp;player's&nbsp;port</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-distill_player"><strong>distill_player</strong></a>(self, possible_player_names)</dt><dd><tt>Discerns&nbsp;the&nbsp;most&nbsp;likely&nbsp;existing&nbsp;player.<br>
&nbsp;<br>
possible_player_names:&nbsp;a&nbsp;list&nbsp;of&nbsp;strings&nbsp;representing&nbsp;possible<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;player&nbsp;names<br>
&nbsp;<br>
Because&nbsp;messages&nbsp;are&nbsp;formatted&nbsp;in&nbsp;such&nbsp;a&nbsp;way&nbsp;that&nbsp;separating<br>
messenger's&nbsp;name&nbsp;from&nbsp;the&nbsp;message&nbsp;is&nbsp;not&nbsp;straightforward,&nbsp;this<br>
method&nbsp;will&nbsp;return&nbsp;the&nbsp;most&nbsp;likely&nbsp;player&nbsp;name&nbsp;from&nbsp;a&nbsp;list&nbsp;of<br>
possible&nbsp;messenger&nbsp;names.&nbsp;&nbsp;This&nbsp;method&nbsp;has&nbsp;other&nbsp;uses,&nbsp;but<br>
that's&nbsp;the&nbsp;primary&nbsp;one.</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-get_general_log_filename"><strong>get_general_log_filename</strong></a>(self, roll<font color="#909090">=False</font>)</dt><dd><tt>Generates&nbsp;the&nbsp;general&nbsp;log&nbsp;filename.</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-get_player"><strong>get_player</strong></a>(self, name<font color="#909090">=None</font>, ip_address_and_port<font color="#909090">=None</font>)</dt><dd><tt>Returns&nbsp;a&nbsp;Player&nbsp;instance.<br>
&nbsp;<br>
name:&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;player&nbsp;to&nbsp;return<br>
ip_address_and_port:&nbsp;A&nbsp;2-Tuple&nbsp;(ip_address,&nbsp;port),&nbsp;both&nbsp;strings<br>
&nbsp;<br>
Either&nbsp;name&nbsp;or&nbsp;ip_address_and_port&nbsp;is&nbsp;optional,&nbsp;but&nbsp;at&nbsp;least<br>
one&nbsp;must&nbsp;be&nbsp;given.&nbsp;&nbsp;Note&nbsp;that&nbsp;only&nbsp;giving&nbsp;name&nbsp;can&nbsp;potentially<br>
return&nbsp;the&nbsp;wrong&nbsp;player,&nbsp;as&nbsp;multiple&nbsp;players&nbsp;can&nbsp;have&nbsp;the&nbsp;same<br>
name.</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-get_player_ip_address"><strong>get_player_ip_address</strong></a>(self, player_name)</dt><dd><tt>Returns&nbsp;a&nbsp;player's&nbsp;IP&nbsp;address.<br>
&nbsp;<br>
player_name:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;player<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;whose&nbsp;IP&nbsp;address&nbsp;is&nbsp;to&nbsp;be&nbsp;returned</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-get_player_number"><strong>get_player_number</strong></a>(self, player_name)</dt><dd><tt>Returns&nbsp;a&nbsp;player's&nbsp;number.<br>
&nbsp;<br>
player_name:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;player<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;whose&nbsp;number&nbsp;is&nbsp;to&nbsp;be&nbsp;returned<br>
&nbsp;<br>
This&nbsp;number&nbsp;is&nbsp;the&nbsp;same&nbsp;as&nbsp;the&nbsp;number&nbsp;indicated&nbsp;by&nbsp;the&nbsp;zserv<br>
'players'&nbsp;command,&nbsp;useful&nbsp;for&nbsp;kicking&nbsp;and&nbsp;not&nbsp;much&nbsp;else.</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-handle_message"><strong>handle_message</strong></a>(self, message, messenger)</dt><dd><tt>Handles&nbsp;a&nbsp;message.<br>
&nbsp;<br>
message:&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;message<br>
messenger:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;messenger</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-remove_player"><strong>remove_player</strong></a>(self, player_name)</dt><dd><tt>Disconnects&nbsp;a&nbsp;player.<br>
&nbsp;<br>
player_name:&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;player&nbsp;to&nbsp;disconnect</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-save_current_general_stats"><strong>save_current_general_stats</strong></a>(self)</dt><dd><tt>Saves&nbsp;stats&nbsp;for&nbsp;the&nbsp;current&nbsp;or&nbsp;most&nbsp;recent&nbsp;game.</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-send_to_zserv"><strong>send_to_zserv</strong></a>(self, message, event_response_type<font color="#909090">=None</font>)</dt><dd><tt>Sends&nbsp;a&nbsp;message&nbsp;to&nbsp;the&nbsp;running&nbsp;zserv&nbsp;process.<br>
&nbsp;<br>
message:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;message&nbsp;to&nbsp;send<br>
event_response_type:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;type&nbsp;of&nbsp;event&nbsp;to<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wait&nbsp;for&nbsp;in&nbsp;response<br>
&nbsp;<br>
When&nbsp;using&nbsp;this&nbsp;method,&nbsp;keep&nbsp;the&nbsp;following&nbsp;in&nbsp;mind:<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;Your&nbsp;message&nbsp;should&nbsp;not&nbsp;contain&nbsp;newlines.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;If&nbsp;event_response_type&nbsp;is&nbsp;None,&nbsp;no&nbsp;response&nbsp;is&nbsp;returned<br>
&nbsp;<br>
This&nbsp;method&nbsp;returns&nbsp;a&nbsp;list&nbsp;of&nbsp;events&nbsp;returned&nbsp;in&nbsp;response.</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-set_general_log_filename"><strong>set_general_log_filename</strong></a>(self, roll<font color="#909090">=False</font>)</dt><dd><tt>Sets&nbsp;the&nbsp;general&nbsp;log&nbsp;filename.<br>
&nbsp;<br>
roll:&nbsp;&nbsp;a&nbsp;boolean&nbsp;that,&nbsp;if&nbsp;given,&nbsp;does&nbsp;the&nbsp;following:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;If&nbsp;the&nbsp;time&nbsp;is&nbsp;11pm,&nbsp;generates&nbsp;a&nbsp;logfile&nbsp;name&nbsp;for<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;upcoming&nbsp;day.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;Does&nbsp;not&nbsp;seek&nbsp;to&nbsp;the&nbsp;end&nbsp;of&nbsp;a&nbsp;file&nbsp;before&nbsp;parsing&nbsp;it<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;events&nbsp;(if&nbsp;it&nbsp;exists).<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Otherwise,&nbsp;the&nbsp;name&nbsp;generated&nbsp;is&nbsp;for&nbsp;the&nbsp;current&nbsp;day,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and&nbsp;the&nbsp;ZServ's&nbsp;LogFile&nbsp;will&nbsp;seek&nbsp;to&nbsp;the&nbsp;end&nbsp;of&nbsp;its<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;file&nbsp;(if&nbsp;it&nbsp;exists).</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-start_collecting_general_stats"><strong>start_collecting_general_stats</strong></a>(self)</dt><dd><tt>Starts&nbsp;collecting&nbsp;statistics.</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-stop_collecting_general_stats"><strong>stop_collecting_general_stats</strong></a>(self)</dt><dd><tt>Stops&nbsp;collecting&nbsp;statistics.</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-update_player_numbers_and_ips"><strong>update_player_numbers_and_ips</strong></a>(self)</dt><dd><tt>Sets&nbsp;player&nbsp;numbers&nbsp;and&nbsp;IP&nbsp;addresses.<br>
&nbsp;<br>
This&nbsp;method&nbsp;needs&nbsp;to&nbsp;be&nbsp;run&nbsp;upon&nbsp;every&nbsp;connection&nbsp;and<br>
disconnection&nbsp;if&nbsp;numbers&nbsp;and&nbsp;names&nbsp;are&nbsp;to&nbsp;remain&nbsp;in&nbsp;sync.</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zaddban"><strong>zaddban</strong></a>(self, ip_address, reason<font color="#909090">='rofl'</font>)</dt><dd><tt>Adds&nbsp;a&nbsp;ban.<br>
&nbsp;<br>
ip_address:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;IP&nbsp;address&nbsp;to&nbsp;ban<br>
reason:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;reason&nbsp;for&nbsp;the&nbsp;ban</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zaddbot"><strong>zaddbot</strong></a>(self, bot_name)</dt><dd><tt>Adds&nbsp;a&nbsp;bot.<br>
&nbsp;<br>
bot_name:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;bot&nbsp;to&nbsp;add.</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zaddmap"><strong>zaddmap</strong></a>(self, map_number)</dt><dd><tt>Adds&nbsp;a&nbsp;map&nbsp;to&nbsp;the&nbsp;maplist.<br>
&nbsp;<br>
map_number:&nbsp;an&nbsp;int&nbsp;representing&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;map&nbsp;to&nbsp;add</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zaddtimedban"><strong>zaddtimedban</strong></a>(self, duration, ip_address, reason<font color="#909090">='rofl'</font>)</dt><dd><tt>Adds&nbsp;a&nbsp;ban&nbsp;with&nbsp;an&nbsp;expiration.<br>
&nbsp;<br>
duration:&nbsp;&nbsp;&nbsp;an&nbsp;integer&nbsp;representing&nbsp;how&nbsp;many&nbsp;minutes&nbsp;the&nbsp;ban<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;should&nbsp;last<br>
ip_address:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;IP&nbsp;address&nbsp;to&nbsp;ban<br>
reason:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;reason&nbsp;for&nbsp;the&nbsp;ban</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zclearmaplist"><strong>zclearmaplist</strong></a>(self)</dt><dd><tt>Clears&nbsp;the&nbsp;maplist.</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zget"><strong>zget</strong></a>(self, variable_name)</dt><dd><tt>Gets&nbsp;a&nbsp;variable.<br>
&nbsp;<br>
variable_name:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;variable<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to&nbsp;get</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zkick"><strong>zkick</strong></a>(self, player_number, reason<font color="#909090">='rofl'</font>)</dt><dd><tt>Kicks&nbsp;a&nbsp;player.<br>
&nbsp;<br>
player_number:&nbsp;an&nbsp;int&nbsp;representing&nbsp;the&nbsp;number&nbsp;of&nbsp;the&nbsp;player&nbsp;to<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;kick<br>
reason:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;reason&nbsp;for&nbsp;the&nbsp;kick</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zkillban"><strong>zkillban</strong></a>(self, ip_address)</dt><dd><tt>Removes&nbsp;a&nbsp;ban.<br>
&nbsp;<br>
ip_address:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;IP&nbsp;address&nbsp;to&nbsp;un-ban</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zmap"><strong>zmap</strong></a>(self, map_number)</dt><dd><tt>Changes&nbsp;the&nbsp;current&nbsp;map.<br>
&nbsp;<br>
map_number:&nbsp;an&nbsp;int&nbsp;representing&nbsp;the&nbsp;number&nbsp;of&nbsp;the&nbsp;map&nbsp;to<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;change&nbsp;to</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zmaplist"><strong>zmaplist</strong></a>(self)</dt><dd><tt>Gets&nbsp;the&nbsp;maplist.<br>
&nbsp;<br>
Returns&nbsp;a&nbsp;list&nbsp;of&nbsp;strings&nbsp;representing&nbsp;the&nbsp;names&nbsp;of&nbsp;maps&nbsp;in<br>
the&nbsp;maplist.&nbsp;&nbsp;An&nbsp;example&nbsp;of&nbsp;one&nbsp;of&nbsp;these&nbsp;strings&nbsp;is:&nbsp;"map01".</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zplayers"><strong>zplayers</strong></a>(self)</dt><dd><tt>Returns&nbsp;a&nbsp;list&nbsp;of&nbsp;players&nbsp;in&nbsp;the&nbsp;server.</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zremovebots"><strong>zremovebots</strong></a>(self)</dt><dd><tt>Removes&nbsp;all&nbsp;bots.</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zresetscores"><strong>zresetscores</strong></a>(self)</dt><dd><tt>Resets&nbsp;all&nbsp;scores.</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zsay"><strong>zsay</strong></a>(self, message)</dt><dd><tt>Sends&nbsp;a&nbsp;message&nbsp;as&nbsp;]&nbsp;CONSOLE&nbsp;[.<br>
&nbsp;<br>
message:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;message&nbsp;to&nbsp;send.</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zset"><strong>zset</strong></a>(self, variable_name, variable_value)</dt><dd><tt>Sets&nbsp;a&nbsp;variable.<br>
&nbsp;<br>
variable_name:&nbsp;&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;variable<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to&nbsp;set<br>
variable_value:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;value&nbsp;to&nbsp;set&nbsp;the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;variable&nbsp;to</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-ztoggle"><strong>ztoggle</strong></a>(self, boolean_variable)</dt><dd><tt>Toggles&nbsp;a&nbsp;boolean&nbsp;variable.<br>
&nbsp;<br>
boolean_variable:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;name&nbsp;of&nbsp;the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;boolean&nbsp;variable&nbsp;to&nbsp;toggle</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zunset"><strong>zunset</strong></a>(self, variable_name)</dt><dd><tt>Unsets&nbsp;a&nbsp;variable.<br>
&nbsp;<br>
variable_name:&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;variable<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to&nbsp;unset</tt></dd></dl>

<dl><dt><a name="TeamZServStatsMixin-zwads"><strong>zwads</strong></a>(self)</dt><dd><tt>Returns&nbsp;a&nbsp;list&nbsp;of&nbsp;the&nbsp;wads&nbsp;in&nbsp;use.</tt></dd></dl>

</td></tr></table></td></tr></table>
</body></html>